package cn.tedu.notice.mapper;

import cn.tedu.notice.pojo.entity.NoticeStaff;
import cn.tedu.notice.pojo.vo.NoticeStaffVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface NoticeStaffMapper {
    /**
     * 创建公告的同时，新增公告-员工-阅读关系映射表
     * @param noticeStaff
     */
    void insert(NoticeStaff noticeStaff);

    /**
     * 查出没有阅读公告的员工的id
     * @param noticeId
     * @return
     */
    List<NoticeStaffVO> selectNotReadStaff(Integer noticeId);
}
